package com.example.huangyuchen.advance.training.camp.builder;

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotNull;

/**
 * @author YuChen Huang
 * @date 2022/2/24 18:11
 */
@FieldDefaults(level = AccessLevel.PUBLIC)
@Data
@SuperBuilder(toBuilder = true)
public class BaseDomain {

    /**
     * 保存数据表中的主键Id
     */
    @NotNull
    Long id;

    /**
     * 保存数据表中的version值
     */
    @NotNull
    Integer version;

}
